package ui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import model.Partij;

public class PartijPanel extends JPanel
{

	private Partij partij;

	/**
	 * Create the panel.
	 */
	public PartijPanel(Partij partij)
	{
		this.partij = partij;

		setPreferredSize(new Dimension(300, 100));

		setBackground(new Color(30, 144, 255));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[] { 0, 0, 0 };
		gridBagLayout.rowHeights = new int[] { 0, 0, 0 };
		gridBagLayout.columnWeights = new double[] { 0.0, 0.0, Double.MIN_VALUE };
		gridBagLayout.rowWeights = new double[] { 0.0, 0.0, Double.MIN_VALUE };
		setLayout(gridBagLayout);

		JLabel lblVvd = new JLabel(partij.getNaam());
		lblVvd.setFont(new Font("Tahoma", Font.PLAIN, 32));
		GridBagConstraints gbc_lblVvd = new GridBagConstraints();
		gbc_lblVvd.gridx = 1;
		gbc_lblVvd.gridy = 2;
		add(lblVvd, gbc_lblVvd);

	}
}
